
    <div id="leftColumnside">
        <div class="secureContent">
	<img src="<?=base_url();?>images/icon-next.png" align="absmiddle"/><a href="#">Lelang</a>
	<hr width="100%" />
    <h3>Daftar Komoditi Terjual</h3>       
    <table width="46%" border="1">
       <tr align="center">
  	     <th rowspan="2">No</th>
    	 <th colspan="2">Komoditi yang Terjual</th>
       </tr>
      <tr align="center">
           <th>Komoditi</th>
           <th>Harga per Kuantitas</th>
      <tr align="center">
        <td>1</td>
        <td>Sapi-Brahman</td>
        <td>8.800.000</td>
      </tr>
      <tr align="center">
        <td>2</td>
        <td>Beras Rojo Lele</td>
        <td>130.000</td>
      </tr>
  </table>
    <br />
    <br />
    <h3> Daftar Komoditi Lelang</h3>
    <p>Waktu Lelang <input type="text" size="1" /> : <input type="text" size="1" /></p>
    <div class="box" align="center">
          Kategori :
          <select name="kategori">
                  <option value="0">-Pilih Kategori Komoditas-</option>
          <?php
                    foreach($category as $cat)
                    {
                            echo "<option value=".$cat['CategoryId'].">".$cat['CategoryName']."</option>";
                    }
          ?>
          </select>
      Komoditas : <select name="komoditas">
      <option>-Pilih Komoditas-</option>
      </select>
      Jenis : <select name="jenis">
      <option>-Pilih Jenis Komoditas-</option>
      </select>
      <input type="button" value="Cari"/>
	</div><br />
    
        <table width="830" border="1">
        <tr align="center">
          <th>No</th>
          <th>Kategori</th>
          <th>Komoditi</th>
          <th>Jenis Komoditi</th>
          <th>Lokasi</th>
          <th>Kuantitas</th>
          <th>Satuan</th>
          <th>Tanggal Tersedia</th>
          <th>Harga per Kuantitas</th>
          <th>Aksi</th>
        </tr>
        <?php
                            $index=1;
                            foreach($commodity as $com)
                            {

                                    echo "<tr>
                                            <td>".$index++."</td>
                                            <td>".$com['CategoryName']."</td>
                                            <td>".$com['CommodityName']."</td>
                                            <td>".$com['CommodityTypeName']."</td>
                                            <td>".$com['RegencyName']."</td>
                                            <td>".$com['Quantity']."</td>
                                            <td>".$com['UOMName']."</td>
                                            <td>".$com['AvailableDate']."</td>
                                            <td>".$com['Price']."</td>
                                            <td align='center'><a href='javascript:void(0);'>Detail</a>&nbsp;&nbsp;
                                            <a href='javascript:void(0);'>Edit</a>&nbsp;&nbsp;
                                            <a href='javascript:void(0);'>Hapus</a></td>
                                    </tr>";

                            }

          ?>
     </table>
        </div>
    </div>
